css dark mode

44

@media (prefers-color-scheme: dark) {
  body {
    background-color: black;
    color: white;
  }
}
@media (prefers-color-scheme: dark) {

}
<meta name="color-scheme" content="dark light">
@media (prefers-color-scheme: dark) { ... }

Comments

Submit
0 Comments